package com.example.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

@Table(name = "shop")
@Data
public class ShopInfo {
    @Id
    private Integer shopId;             //店铺id

    @Column(name = "shopname")
    private String shopname;            //店铺名称

    @Column(name = "username")
    private String username;            //商家名称

//    @Column(name = "createtime")
    private String createtime;          //店铺创建时间

    private int countnum;               //在售树苗种类数量

    private int sumnum;                 //在售树苗总数量

    public ShopInfo(Integer shopId, String shopname, String username, String createtime) {
        this.shopId = shopId;
        this.shopname = shopname;
        this.username = username;
        this.createtime = createtime;
    }

    public ShopInfo() {
    }
}
